// 路由层 管理程序路由信息
package routers

import (
	"krm-backend/routers/auth"
	"krm-backend/routers/cluster"
	"krm-backend/routers/namespace"
	"krm-backend/routers/pod"

	"github.com/gin-gonic/gin"
)

// 注册路由方法
func RegisterRouters(r *gin.Engine) {
	//1.登录路由:/api/auth/login
	//2.退出登录:/api/auth/logout
	apiGroup := r.Group("/api") //定义路由分组
	auth.RegisterSubRouters(apiGroup)
	cluster.RegisterSubRouters(apiGroup)
	namespace.RegisterSubRouters(apiGroup)
	pod.RegisterSubRouters(apiGroup)
}
